package org.thunms.framework.model;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang3.builder.ToStringBuilder;
/**
 * easyui表格数据格式
 */
public class DataGridMap implements Serializable {
	private static final long serialVersionUID = 1045406028099636076L;
	/**
	 * 总记录数.
	 * count.
	 */
	private Long total;// 总记录数
	/**
	 * 当前记录集.
	 */
	private List<Map<String,Object>> rows;// 每行记录
	/**
	 * 页脚记录集.
	 */
	private List<Map<String,Object>> footer;//页脚合计
	public Long getTotal() {
		return total;
	}
	/**
	 * 设置总的记录数.
	 * @param total
	 */
	public void setTotal(Long total) {
		this.total = total;
	}
	
	public List<Map<String, Object>> getRows() {
		return rows;
	}
	public void setRows(List<Map<String, Object>> rows) {
		this.rows = rows;
	}
	public List<Map<String, Object>> getFooter() {
		return footer;
	}
	public void setFooter(List<Map<String, Object>> footer) {
		this.footer = footer;
	}
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
}
